package com.yhsoft.buyer.controller.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@ApiModel(description = "用户地址实体")
public class BuyerAddressInVo {
    @ApiModelProperty("主键id,新增不填，修改必填")
    private Integer id;

    @ApiModelProperty("收货人名称")
    @NotBlank(message = "收货人名称不能为空")
    private String name;

    @ApiModelProperty("行政区域表的省ID")
    @NotNull(message = "省ID不能为空")
    private Integer provinceId;

    @ApiModelProperty("行政区域表的市ID")
    @NotNull(message = "市ID不能为空")
    private Integer cityId;

    @ApiModelProperty("行政区域表的区县ID")
    @NotNull(message = "县ID不能为空")
    private Integer areaId;

    @ApiModelProperty("具体收货地址")
    @NotBlank(message = "具体收货地址不能为空")
    private String address;

    @ApiModelProperty("手机号码")
    @NotBlank(message = "手机号码不能为空")
    private String mobile;

}
